﻿using RAP.Framework.Libary.DataSource.Context;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RAP.Framework.Libary.DataSource.Model
{
	public interface IQueryResult
	{
		/// <summary>
		/// 是否有异常
		/// </summary>
		bool HasError { get; }

		/// <summary>
		/// 异常信息
		/// </summary>
		ServiceError Error { get; set; }

		/// <summary>
		/// 数据查询结果集
		/// </summary>
		dynamic Data { get; set; }

		/// <summary>
		/// 数据查询上下文对象
		/// </summary>
		IDataServiceContext DataServiceContext { get; set; }
	}
}
